import java.util.Arrays;

public class Arrays_02 {

    public static void main(String[] args) {
        String s="91 27 39 45 12 59";
        String[] s1 = s.split(" ");
        int[]arr=new int[s1.length];
        System.out.println(Arrays.toString(s1));
        for (int i=0;i<s1.length;i++){
            arr[i]=Integer.parseInt(s1[i]);
        }
         Arrays.sort(arr);
    }
}
